/*
 * DesktopDelegate.h  0.4.0 / Dec 04, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef DESKTOPDELEGATE_H
#define DESKTOPDELEGATE_H

#include "Cute4jSwing.h"

// DesktopDelegate Class. ------------------------------------------------------

/*!
 * \brief Desktop Delegate.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT DesktopDelegate
{
public: // native calls
  static jobject getScreenSize(JNIEnv *env, jclass cls);
  static int getScreenResolution(JNIEnv *env, jclass cls);
  static jobject getDesktopBounds(JNIEnv *env, jclass cls);
  static jobject takeScreenshot(JNIEnv *env, jclass cls,
                                jlong componentDelegate, jstring imageFormat);
};

// Macro Definition. -----------------------------------------------------------

#define DESKTOP_DELEGATE (reinterpret_cast<DesktopDelegate *>(delegate))

#endif // DESKTOPDELEGATE_H
